<?php

namespace Nim\Bundle\ModelBundle\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping as ORM;

/**
 * Product
 *
 * @ORM\Table(name="product")
 * @ORM\Entity
 */
class Product
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=50)
     */
    private $name;
    
    /**
     * @ORM\OneToOne(targetEntity="ProductDescription")
     * @ORM\JoinColumn(name="description_id", referencedColumnName="id")
     **/
    private $description;

    /**
     * @ORM\OneToOne(targetEntity="ProductColor")
     * @ORM\JoinColumn(name="color_id", referencedColumnName="id")
     **/
    private $color;
    
    /**
     * @ORM\OneToOne(targetEntity="ProductWaist")
     * @ORM\JoinColumn(name="waist_id", referencedColumnName="id")
     **/
    private $waist;
    
    /**
     * @ORM\ManyToOne(targetEntity="Vendor", inversedBy="products")
     * @ORM\JoinColumn(name="vendor_id")
     */
    private $vendor;
    
    public function getId()
    {
        return $this->id;
    }

    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param \Nim\Bundle\ModelBundle\Entity\ProductDescription $description
     * @return Product
     */
    public function setDescription(\Nim\Bundle\ModelBundle\Entity\ProductDescription $description = null)
    {
        $this->description = $description;
    
        return $this;
    }

    /**
     * Get description
     *
     * @return \Nim\Bundle\ModelBundle\Entity\ProductDescription 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set color
     *
     * @param \Nim\Bundle\ModelBundle\Entity\ProductColor $color
     * @return Product
     */
    public function setColor(\Nim\Bundle\ModelBundle\Entity\ProductColor $color = null)
    {
        $this->color = $color;
    
        return $this;
    }

    /**
     * Get color
     *
     * @return \Nim\Bundle\ModelBundle\Entity\ProductColor 
     */
    public function getColor()
    {
        return $this->color;
    }

    /**
     * Set waist
     *
     * @param \Nim\Bundle\ModelBundle\Entity\ProductWaist $waist
     * @return Product
     */
    public function setWaist(\Nim\Bundle\ModelBundle\Entity\ProductWaist $waist = null)
    {
        $this->waist = $waist;
    
        return $this;
    }

    /**
     * Get waist
     *
     * @return \Nim\Bundle\ModelBundle\Entity\ProductWaist 
     */
    public function getWaist()
    {
        return $this->waist;
    }

    /**
     * Set vendor
     *
     * @param \Nim\Bundle\ModelBundle\Entity\Vendor $vendor
     * @return Product
     */
    public function setVendor(\Nim\Bundle\ModelBundle\Entity\Vendor $vendor = null)
    {
        $this->vendor = $vendor;
    
        return $this;
    }

    /**
     * Get vendor
     *
     * @return \Nim\Bundle\ModelBundle\Entity\Vendor 
     */
    public function getVendor()
    {
        return $this->vendor;
    }
}